<h3>Front page background image</h3>
<?php print form(null,null,array('enctype'=>'multipart/form-data','confirm'=>'Are you sure you want to upload this header image? It must be at least '.$this->v('restr','w').' pixels wide and '.$this->v('restr','h').' pixels high.'));?>
	<table class="x">
		<tr>
			<td>
				<label for="header">
				<b>Header image</b><br/>
				<span class="small">Set the image to use as the front-page header.</span>
				</label><br/>
			</td>
			<td>
				<?php print input('file','header','Upload a header image');?>
				<img src="<?php print WEBROOT.'/upload/front/header.png';?>" width=200 />
			</td>
		</tr>
	</table>
<?php print submit('Upload',null,array('key'=>'u')).form(true);?>

<h3>Page background pattern</h3>
<?php print formx();?>
	<table class="x p <?php print ($this->v('pattern')!=null?$this->v('pattern'):'');?>">
		<tr>
			<td>
				<label for="header">
				<b>Body pattern</b><br/>
				<span class="small">Select a pattern for the body.</span>
				</label><br/>
			</td>
			<td>
				<div class="l">
				<select name="body_class">
					<option value="" <?php print (is_null($this->v('pattern')) || $this->v('pattern') == ''?'selected="selected"':'');?>>No pattern</option>
					<?php for ($i=1;$i<=$this->v('patterns');$i++):?>
						<option value="pattern<?php print $i;?>" <?php print ($this->v('pattern')==('pattern'.$i)?'selected="selected"':'');?>>Pattern <?php print $i;?></option>
					<?php endfor;?>
				</select>
				</div>
			</td>
		</tr>
	</table>
<?php form(true);?>